package com.rede.didiok.user.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.rede.didiok.common.utils.R;
import com.rede.didiok.user.service.UserWatchService;



/**
 * 用户关注表
 *
 * @author Rede
 * @email didiok@foxmail.com
 * @date 2023-08-07 18:21:17
 */
@RestController
@RequestMapping("user/feign/userWatch")
public class UserWatchController {
    @Autowired
    private UserWatchService userWatchService;

    /**
     * 获取用户关注的用户id列表
     *
     * @param
     * @return
     */
    @GetMapping(value = "/listUserWatchUid")
    R listUserWatchByUserUid(@RequestParam("userUid") String userUid){
        return R.ok().setData(userWatchService.listUserWatchIdsByUserUid(userUid));
    }

}
